package com.xl.xlservice.client;

import com.xl.xlservice.model.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "xlservice1")
@RequestMapping("/order")
public interface OrderClient {
    @PostMapping("/addOrder")
    public void addOrder(Order order);

    @PostMapping("/queryOrder")
    public List<Order> queryOrder(Order order);
}
